using UnityEngine;

public struct ButtonPositionInfo
{
	public float[] param;

	private static int paramCount = 3;

	public ButtonPositionInfo(string value)
	{
		param = new float[paramCount];
		string text = string.Empty;
		int num = 0;
		for (int i = 0; i != paramCount; i++)
		{
			while (value[num] != ' ')
			{
				text += value[num++];
			}
			num++;
			param[i] = float.Parse(text);
			text = string.Empty;
		}
	}

	public ButtonPositionInfo(Vector3 pos, float scale)
	{
		param = new float[paramCount];
		param[0] = Mathf.Abs(pos.x);
		param[1] = pos.y;
		param[2] = scale;
	}

	public override string ToString()
	{
		string text = string.Empty;
		for (int i = 0; i != param.Length; i++)
		{
			text = text + param[i] + " ";
		}
		return text;
	}
}
